<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html>

<head>
    <meta charset="UTF-8" />
    <title>库存管理系统</title>
    <link rel="stylesheet" type="text/css" href="http://localhost:8080/back/css/common.css" />
    <link rel="stylesheet" type="text/css" href="http://localhost:8080/back/css/main.css" />
</head>

<body>
<%@include file="../common/header.jsp"%>

<div class="container clearfix">
    <%@include file="../common/menu.jsp"%>

    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="http://localhost:8080/back/index.jsp">首页</a><span
                    class="crumb-step">&gt;</span><a class="crumb-name" href="../goods/getAllGoods">商品管理</a><span
                    class="crumb-step">&gt;</span><span>修改商品</span></div>
            <c:if test="${not empty error}">
                <p style="color: red">${error}</p>
            </c:if>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="../goods/editHandler.do" method="post" id="myform" name="myform">
                    <input type="hidden" name="goodsId" value="${goods.goodsId}">
                    <table class="insert-tab" width="100%">
                        <tbody>

                        <tr>
                            <th><i class="require-red">*</i>商品编号：</th>
                            <td>
                                <input class="common-text required"  name="goodsBarcode"
                                       size="50" value="${goods.goodsBarcode}" type="text">
                                <span style="color: red;"></span>
                            </td>


                        <tr>
                            <th><i class="require-red">*</i>商品名称：</th>
                            <td>
                                <input class="common-text required" name="goodsName"
                                       size="50" value="${goods.goodsName}" type="text">
                                <span style="color: red;"></span>
                            </td>
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>商品类型：</th>
                            <td>
                                <select name="goodsTypeId" id="" value="${goods.goodsTypeId}">
                                    <option value="1" >上衣</option>
                                    <option value="2">可穿戴设备</option>
                                    <option value="3">早餐食品</option>
                                    <option value="4">书房家具</option>
                                    <option value="5">护肤品</option>
                                    <option value="6">鞋类</option>
                                    <option value="7">智力玩具</option>

                                </select>
                            </td>
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>品牌：</th>
                            <td>
                                <input class="common-text required"  name="brand"
                                       size="50" value="${goods.brand}" type="text">
                                <span style="color: red;"></span>
                            </td>
                            </td>
                        </tr>

                        <tr>
                            <th><i class="require-red">*</i>商品规格：</th>
                            <td>
                                <input class="common-text required"  name="goodsSprecification"
                                       size="50" value="${goods.goodsSprecification}" type="text">
                                <span style="color: red;"></span>
                            </td>
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>制造商：</th>
                            <td>
                                <input class="common-text required" id="station_address" name="manufacture"
                                       size="50" value="${goods.manufacture}" type="text">
                                <span style="color: red;"></span>
                            </td>
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>产地：</th>
                            <td>
                                <input class="common-text required"  name="originalPlace"
                                       size="50" value="${goods.originalPlace}" type="text">
                                <span style="color: red;"></span>
                            </td>
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>备注：</th>
                            <td>
                                <input class="common-text required"  name="goodsRemark"
                                       size="50" value="${goods.goodsRemark}" type="text">
                                <span style="color: red;"></span>
                            </td>
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <input class="btn btn-primary btn6 mr10" value="修改" type="submit">
                                <input class="btn btn6" onClick="history.go(-1)" value="返回" type="button">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>


    </div>
</div>
</body>

</html>